package com.wl.zlmanage.mapper;


import com.wl.zlmanage.bean.User;
import com.wl.zlmanage.bean.ZlInfo;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ResourceMapper {

    List<ZlInfo> getResourceList(@Param("user") User user,
        @Param("page") int page,
        @Param("limit") int limit, @Param("search") String search,@Param("type") Integer type);

    Integer getResourceListCount(@Param("user") User user, @Param("search") String search,@Param("type") Integer type);

    Integer saveResource(@Param("zlInfo") ZlInfo zlInfo);

    Integer deleteResourceById(@Param("resourceId") Integer resourceId);

    ZlInfo getResourceById(@Param("id") Integer id);

    Integer updateResourceMark(@Param("zlInfo") ZlInfo zlInfo);

}
